package com.vca.common.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.HashMap;
import java.util.List;

/**
 * @author chenbing
 * @date 2022/11/10   13:33
 */
@Data
public class ComputedOrderCoursePriceRequest {
    @ApiModelProperty(value = "预下单订单号")
    @NotBlank(message = "预下单订单号不能为空")
    private String preOrderCourseNo;

    @ApiModelProperty(value = "地址ID")
    @NotNull(message = "地址不能为空")
    private Integer addressId;

    @ApiModelProperty(value = "礼品卡ID")
    private Integer cardId;

    @ApiModelProperty(value = "是否需要发票")
    private Boolean invoiceRequired;

    @ApiModelProperty(value = "预约人数")
    @Range(max = 4, message = "最多可预约四人")
    private Integer appointmentsCount;

    @ApiModelProperty(value = "赠送他人信息")
    private List<HashMap<String, String>> giveAwayToOthersMap;
}
